package com.wisdytech.linkdcs.measuretool.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanghailin
 * @since 2018-06-15
 */
@TableName("TT_EQ_MEASURE_TOOL")
public class MeasureTool extends Model<MeasureTool> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 计量器具编码
     */
    @TableField("MEASURE_TOOL_CODE")
    private String measureToolCode;
    /**
     * 计量器具名称
     */
    @TableField("MEASURE_TOOL_NAME")
    private String measureToolName;
    /**
     * 计量器具型号
     */
    @TableField("MEASURE_TOOL_MODEL")
    private String measureToolModel;
    /**
     * 供应商
     */
    @TableField("SUPPLIER")
    private String supplier;
    /**
     * 分度值
     */
    @TableField("DIVIDING_VALUE")
    private String dividingValue;
    /**
     * 测量范围
     */
    @TableField("MEASURE_RANGE")
    private String measureRange;
    /**
     * 允许误差
     */
    @TableField("TOLERANCE")
    private String tolerance;
    /**
     * 投产日期
     */
    @TableField("PRODUCTION_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date productionDate;
    /**
     * 使用部门
     */
    @TableField("DEPARTMENT")
    private String department;
    /**
     * 区域编码
     */
    @TableField("AREA_CODE")
    private String areaCode;
    /**
     * 区域名称
     */
    @TableField("AREA_NAME")
    private String areaName;
    /**
     * 是否校验
     */
    @TableField("CHECK_FLAG")
    private String checkFlag;
    /**
     * 校验类别
     */
    @TableField("CHECK_TYPE")
    private String checkType;
    /**
     * 校验周期
     */
    @TableField("CHECK_CYCLE")
    private Long checkCycle;
    /**
     * 开始校验日期
     */
    @TableField("CHECK_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date checkDate;
    /**
     * 上次校验时间
     */
    @TableField("LAST_CHECK_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date lastCheckDate;
    /**
     * 下次校验时间
     */
    @TableField("NEXT_CHECK_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8" )
    private Date nextCheckDate;
    /**
     * 责任人
     */
    @TableField("DUTY_USER")
    private String dutyUser;
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("REMARK")
    private String remark;

    @TableField(exist = false)
    private String checkTypeValue;

    @TableField(exist = false)
    private String dutyUserName;


    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getMeasureToolCode() {
        return measureToolCode;
    }

    public void setMeasureToolCode(String measureToolCode) {
        this.measureToolCode = measureToolCode;
    }

    public String getMeasureToolName() {
        return measureToolName;
    }

    public void setMeasureToolName(String measureToolName) {
        this.measureToolName = measureToolName;
    }

    public String getMeasureToolModel() {
        return measureToolModel;
    }

    public void setMeasureToolModel(String measureToolModel) {
        this.measureToolModel = measureToolModel;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getDividingValue() {
        return dividingValue;
    }

    public void setDividingValue(String dividingValue) {
        this.dividingValue = dividingValue;
    }

    public String getMeasureRange() {
        return measureRange;
    }

    public void setMeasureRange(String measureRange) {
        this.measureRange = measureRange;
    }

    public String getTolerance() {
        return tolerance;
    }

    public void setTolerance(String tolerance) {
        this.tolerance = tolerance;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCheckFlag() {
        return checkFlag;
    }

    public void setCheckFlag(String checkFlag) {
        this.checkFlag = checkFlag;
    }

    public String getCheckType() {
        return checkType;
    }

    public void setCheckType(String checkType) {
        this.checkType = checkType;
    }

    public Long getCheckCycle() {
        return checkCycle;
    }

    public void setCheckCycle(Long checkCycle) {
        this.checkCycle = checkCycle;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public Date getLastCheckDate() {
        return lastCheckDate;
    }

    public void setLastCheckDate(Date lastCheckDate) {
        this.lastCheckDate = lastCheckDate;
    }

    public Date getNextCheckDate() {
        return nextCheckDate;
    }

    public void setNextCheckDate(Date nextCheckDate) {
        this.nextCheckDate = nextCheckDate;
    }

    public String getDutyUser() {
        return dutyUser;
    }

    public void setDutyUser(String dutyUser) {
        this.dutyUser = dutyUser;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCheckTypeValue() {
        return checkTypeValue;
    }

    public void setCheckTypeValue(String checkTypeValue) {
        this.checkTypeValue = checkTypeValue;
    }

    public String getDutyUserName() {
        return dutyUserName;
    }

    public void setDutyUserName(String dutyUserName) {
        this.dutyUserName = dutyUserName;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "MeasureTool{" +
        ", pkId=" + pkId +
        ", measureToolCode=" + measureToolCode +
        ", measureToolName=" + measureToolName +
        ", measureToolModel=" + measureToolModel +
        ", supplier=" + supplier +
        ", dividingValue=" + dividingValue +
        ", measureRange=" + measureRange +
        ", tolerance=" + tolerance +
        ", productionDate=" + productionDate +
        ", department=" + department +
        ", areaCode=" + areaCode +
        ", areaName=" + areaName +
        ", checkFlag=" + checkFlag +
        ", checkType=" + checkType +
        ", checkCycle=" + checkCycle +
        ", checkDate=" + checkDate +
        ", lastCheckDate=" + lastCheckDate +
        ", nextCheckDate=" + nextCheckDate +
        ", dutyUser=" + dutyUser +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        "}";
    }
}
